﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Authorization.Domain.Model.Authority
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("RoleModel")]
    public class RoleModel
    {
        [Key]
        ///主键
        public int RoleId { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [Column(TypeName = "nvarchar(200)")]
        [MaxLength(200)]
        public string? RoleDesc { get; set; }
    }
}
